//#include "targetver.h"

#include <windows.h>
#include "Service.h"

/////////////////////////////////////////////////////////////////////
void wmain(int argc, wchar_t* argv[])
{
    wrservice::Service& svc = wrservice::Service::instance();
    svc.set_name(L"WinsockRedirectService");

    if ( argc > 2) {
        svc.config(wrservice::help);
    }
    else if (argc == 2) {
        wrservice::service_config (svc, argv[1]);
    }
    else {
        svc.execute();
    }
}
